<?php

@session_start();

ini_set("display_errors","Off");
//数据库设置
static 	$DB_HOST="localhost";
static 	$DB_NAME="contest_register";
static 	$DB_USER="root";
static 	$DB_PASS="";

static $Max_Length = 20;
static $OJ_PATH = '../OnlineJudge';
static $BM_HOME = 'http://127.0.0.1/ContestRegister';
static $BM_ADMIN = 'cr_admin';
static $BM_VCODE=true;
static $SF_TEAM_LIMIT = 4;//算法竞赛每校最多队伍数
static $XM_TEAM_LIMIT = 5;//项目竞赛每校最多队伍数
static $XM_STU_LIMIT = 3;//项目竞赛每队最多人数

static $XM_SIZE_LIMIT = 1073741824;//1GB
static $USERDOC_SIZE_LIMIT = 104857600;//100MB

static $UPLOAD_ROUT = 'C:\\xampp\\htdocs\\ContestRegister\\QPOXIEN18BsOupload\\';
static $DOWNLOAD_ROUT = '/download.php';

static $UPLOAD_USERDOC_ROUT = 'C:\\xampp\\htdocs\\ContestRegister\\XVO2vnoFEWOuserdoc\\';
static $DOWNLOAD_USERDOC_ROUT = '/download.php';


static $TEMP_FILE = 'C:\\xampp\\htdocs\\ContestRegister\\TzVVoFEWOtmpfile\\';
static $DOCUMENTS_FILE = 'C:\\xampp\\htdocs\\ContestRegister\\documents\\';



static $sf_name = '程序设计竞赛';
static $rj_name = '软件作品大赛';



static $MSG_USER_ID = 'User ID';
static $MSG_EMAIL = 'Email';
static $MSG_VCODE = '验证码';
static $MSG_GOBACK = '返回';
static $MSG_COACH = '教练姓名';
static $MSG_CONTEST_LEADER_CHOSE = '领队赛项';


static 	$OJ_ADMIN="root@localhost";
static  $BM_CSS="register.css";
static  $OJ_APPENDCODE=false;
static  $OJ_MEMCACHE=false;
static  $OJ_MEMSERVER="127.0.0.1";
static  $OJ_MEMPORT=11211;
static  $BM_TEMPLATE="glfs";
static  $OJ_LOGIN_MOD="hustoj";

static $OJ_OPENID_PWD = '8a367fe87b1e406ea8e94d7d508dcf01';




//if(date('H')<5||date('H')>21||isset($_GET['dark'])) $OJ_CSS="dark.css";
if (isset($_SESSION['OJ_LANG'])) $OJ_LANG=$_SESSION['OJ_LANG'];

	
	//for normal install
	if(!mysql_pconnect($DB_HOST,$DB_USER,$DB_PASS)) 
		die('Could not connect: ' . mysql_error());
	// use db
	mysql_query("set names utf8");
  //if(!$OJ_SAE)mysql_set_charset("utf8");
	
	if(!mysql_select_db($DB_NAME))
		die('Can\'t use foo : ' . mysql_error());
	//sychronize php and mysql server
	date_default_timezone_set("PRC");
	mysql_query("SET time_zone ='+8:00'");
	
?>
